using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls; 


namespace TVT.UI.UserControls
{
    public partial class SignIn : System.Web.UI.UserControl
    {

        protected void LoggedIn(object sender, EventArgs e)
        {
            Response.Redirect("~/UserProfile.aspx");
        }

        protected void OnRegisterClick(object sender, EventArgs e)
        {
            Response.Cookies.Remove(FormsAuthentication.FormsCookieName);
            FormsAuthentication.SetAuthCookie("guest", false);
            Response.Redirect("~/Users.aspx");
        }
    }
}
